import request from '@/utils/request'

// 获取申报列表信息
export function getDeclareList () {
  return request({
    url: '/declare/expand/queryDeclareList',
    method: 'get',
  })
}

// 获取申报列表信息
export function addDeclare (data) {
  return request({
    url: '/declare/expand/addDeclare',
    method: 'post',
    params: data
  })
}

// 查询申报是否重复
export function queryDeclareType (type) {
  return request({
    url: '/declare/expand/queryDeclareType',
    method: 'get',
    params: { type }
  })
}

// 获取审核状态信息
export function getAuditStatus (relationId) {
  return request({
    url: '/declare/expand/getDeclareAuditList',
    method: 'get',
    params: {
      relationId
    }
  })
}

// 修改审核状态
export function updateDeclareStatus (data) {
  return request({
    url: '/declare/expand/updateDeclareStatus',
    method: 'post',
    params: data
  })
}

